﻿using System;
using System.Windows.Forms;

namespace ASmile.Win.Forms
{
    public partial class FrmCfgPrintEdit : FrmBaseEdit
    {
        public FrmCfgPrintEdit()
        {
            InitializeComponent();
        }

        public string SearchFormName { set; get; }
        // <summary>
        /// 上级grid的行号，用于自动赋值列顺序
        /// </summary>
        public int DgvRowCount { set; get; }

        public Form OwnerForm { set; get; }

        private void FrmPrintConfigEdit_Load(object sender, EventArgs e)
        {
            if (OwnerForm != null)
            {
                txtFormName.Text = SearchFormName;                 
                txtFormName.ReadOnly = true;
                txtCaption.Focus();
            }
            if (!EditArg.IsEditShow)
            {
                txtPrintIndex.Value = DgvRowCount;
            }
        }
    }
}
